<?php
// 本类由系统自动生成，仅供测试用途
class AindexAction extends Action {
	
    public function miao(){
    	$this->getMenu();
    	
    	//获取MENU
    	$module = include(COMMON_PATH.'index_module.php');
		$this->assign('module', $module['miao']);
    	$this->assign('type', 'miao');
    	
    	$this->display();
    }
    
    public function wang(){
    	$this->getMenu();
    	
    	//获取MENU
    	$module = include(COMMON_PATH.'index_module.php');
		$this->assign('module', $module['wang']);
    	$this->assign('type', 'wang');
    	
    	$this->display();
    }
    
    public function book(){
    	$this->getMenu();
    	
    	//获取MENU
    	$module = include(COMMON_PATH.'index_module.php');
		$this->assign('module', $module['book']);
    	$this->assign('type', 'book');
    	
    	$this->display();
    }
    
    public function getMenu(){
    	
    	//检测是否为登陆状态
	    R("Login/isLogin");
    	
    	//获取MENU
    	$menu = include(COMMON_PATH.'menu.php');
		$this->assign('menu', $menu);
    }
}